#!/bin/bash
#=======================
# Author : Ali Moradzade
# Created: 2022/01/11
#=======================

# using the return command in a function

function db1 {
	read -p "Enter a value: " value
	echo "doubling the value"
	return $[ $value * 2 ]
}

db1
echo "The new value is $?"
